package com.msh.automatic.android.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 激活码表;
 * @author : http://www.chiner.pro
 * @date : 2025-6-6
 */
@Data
@TableName("activation_code")
@ApiModel(value = "激活码表",description = "")
public class ActivationCode implements Serializable,Cloneable{
    /** 主键 */
    @TableId

    @TableField(value = "`id`")
    @ApiModelProperty(name = "id",notes = "主键")
    private String id;

    /** 用户id */

    @TableField(value = "`user_id`")
    @ApiModelProperty(name = "userId",notes = "用户id")
    private String userId;

    /** 设备ID */

    @TableField(value = "`device_id`")
    @ApiModelProperty(name = "deviceId",notes = "设备ID")
    private String deviceId;

    /** 有效期（天） */

    @TableField(value = "`validity_day`")
    @ApiModelProperty(name = "validityDay",notes = "有效期（天）")
    private Integer validityDay;

    /** 乐观锁 */
    @com.baomidou.mybatisplus.annotation.Version
    @TableField(value = "`revision`")
    @ApiModelProperty(name = "revision",notes = "乐观锁")
    private Integer revision;

    /** 创建人 */

    @TableField(value = "`created_by`" , fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdBy",notes = "创建人")
    private String createdBy;

    /** 创建时间 */

    @TableField(value = "`created_time`" , fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime",notes = "创建时间")
    private Date createdTime;

    /** 更新人 */

    @TableField(value = "`updated_by`" , fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(name = "updatedBy",notes = "更新人")
    private String updatedBy;

    /** 更新时间 */

    @TableField(value = "`updated_time`" , fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(name = "updatedTime",notes = "更新时间")
    private Date updatedTime;

    /** 数据权限 */

    @TableField(value = "`data_permissions`")
    @ApiModelProperty(name = "dataPermissions",notes = "数据权限")
    private String dataPermissions;

    /** 数据版本 */

    @TableField(value = "`data_version`")
    @ApiModelProperty(name = "dataVersion",notes = "数据版本")
    private Integer dataVersion;



}